<?php
    class Bid_Service extends BidService{
        
        static function countBid($service_id){
             $countBidService = BidService::model()->countByAttributes(array('service_id'=>$service_id));
             return $countBidService;
        }
        static function getIdNguoiThue($id){
            $user_id = BidService::model()->findByPk($id);
            return $user_id->user_id;
        } 
    }
?>